package com.fowo.api.model.inventory.flow;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fowo.api.common.validator.*;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.*;
import lombok.Data;

/**
 * 库存流水 预览导入辅助模型(全字段为文本类型)
 * @author yl_ls
 */
@Data
public class InventoryFlowImportPo {

  /** 操作时间 */
  @ExcelProperty("操作时间")
  @DateTimeString(message = "操作时间不是有效的时间日期格式")
  private String operationTime;

  /** 类型 */
  @ExcelProperty("*类型")
  @NotBlank(message = "类型不能为空")
  private String type;

  /** 单据号 */
  @ExcelProperty("单据号")
  @Size(max = 50, message = "单据号长度不能超过50")
  private String num;

  /** 关联单据号 */
  @ExcelProperty("关联单据号")
  @Size(max = 50, message = "关联单据号长度不能超过50")
  private String relatedNum;

  /** 品名 */
  @ExcelProperty("*品名")
  @NotBlank(message = "品名不能为空")
  @Size(max = 500, message = "品名长度不能超过500")
  private String productNameName;

  @ExcelIgnore
  @Schema(title = "*品名")
  private String productName;

  /** 产品类型 */
  @ExcelProperty("*产品类型")
  @NotBlank(message = "产品类型不能为空")
  @Size(max = 50, message = "产品类型长度不能超过50")
  private String productType;

  /** SKU */
  @ExcelProperty("SKU")
  @Size(max = 50, message = "SKU长度不能超过50")
  private String sku;

  /** 店铺 */
  @ExcelProperty("*店铺")
  @NotBlank(message = "店铺不能为空")
  @Size(max = 50, message = "店铺长度不能超过50")
  private String shopShopName;

  @ExcelIgnore
  @Schema(title = "*店铺")
  private String shop;

  /** FNSKU */
  @ExcelProperty("FNSKU")
  @Size(max = 50, message = "FNSKU长度不能超过50")
  private String fnsku;

  /** 仓库 */
  @ExcelProperty("*仓库")
  @NotBlank(message = "仓库不能为空")
  @Size(max = 50, message = "仓库长度不能超过50")
  private String warehouseName;

  @ExcelIgnore
  @Schema(title = "*仓库")
  private String warehouse;

  /** 可用量 */
  @ExcelProperty("可用量")
  @IntegerString(message = "可用量数值格式不正确", label = "可用量", min = 0)
  private String availableAmount;

  /** 次品量 */
  @ExcelProperty("次品量")
  @IntegerString(message = "次品量数值格式不正确", label = "次品量", min = 0)
  private String defectiveQuantity;

  /** 待检待上架量 */
  @ExcelProperty("待检待上架量")
  @IntegerString(
    message = "待检待上架量数值格式不正确",
    label = "待检待上架量",
    min = 0
  )
  private String inspected;

  /** 可用锁定量 */
  @ExcelProperty("可用锁定量")
  @IntegerString(
    message = "可用锁定量数值格式不正确",
    label = "可用锁定量",
    min = 0
  )
  private String lockAmount;

  /** 次品锁定量 */
  @ExcelProperty("次品锁定量")
  @IntegerString(
    message = "次品锁定量数值格式不正确",
    label = "次品锁定量",
    min = 0
  )
  private String defectiveLockAmount;

  /** 可用在途量 */
  @ExcelProperty("可用在途量")
  @IntegerString(
    message = "可用在途量数值格式不正确",
    label = "可用在途量",
    min = 0
  )
  private String transitAvailable;

  /** 次品在途量 */
  @ExcelProperty("次品在途量")
  @IntegerString(
    message = "次品在途量数值格式不正确",
    label = "次品在途量",
    min = 0
  )
  private String transitDefective;

  /** 采购单价 */
  @ExcelProperty("采购单价")
  @DecimalString(message = "采购单价小数格式不正确", label = "采购单价")
  private String purchasePrice;

  /** 单位费用 */
  @ExcelProperty("单位费用")
  @DecimalString(message = "单位费用小数格式不正确", label = "单位费用")
  private String unitCosts;

  /** 单位头程 */
  @ExcelProperty("单位头程")
  @DecimalString(message = "单位头程小数格式不正确", label = "单位头程")
  private String unitheadStroke;

  /** 单位库存成本 */
  @ExcelProperty("单位库存成本")
  @DecimalString(message = "单位库存成本小数格式不正确", label = "单位库存成本")
  private String unitInventoryCost;

  /** 货值 */
  @ExcelProperty("货值")
  @DecimalString(message = "货值小数格式不正确", label = "货值")
  private String goods;

  /** 费用 */
  @ExcelProperty("费用")
  @DecimalString(message = "费用小数格式不正确", label = "费用")
  private String costs;

  /** 头程 */
  @ExcelProperty("头程")
  @DecimalString(message = "头程小数格式不正确", label = "头程")
  private String headStroke;

  /** 库存成本 */
  @ExcelProperty("库存成本")
  @DecimalString(message = "库存成本小数格式不正确", label = "库存成本")
  private String inventoryCost;

  /** 操作人 */
  @ExcelProperty("操作人")
  @Size(max = 50, message = "操作人长度不能超过50")
  private String operatorName;

  @ExcelIgnore
  @Schema(title = "操作人")
  private String operator;

  /** 备注 */
  @ExcelProperty("备注")
  @Size(max = 50, message = "备注长度不能超过50")
  private String remarks;

  /** 更新记录 */
  @ExcelProperty("更新记录")
  @Size(max = 50, message = "更新记录长度不能超过50")
  private String updateRecords;
}
